﻿using Shinva.Variables.Models;
using Shinva.Variables.Type.combination;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shinva.PLCModel.Models
{
  public  class PlcVariable
    {
        //静态变量列表
        public PlcStruct NoneStruct { get; set; } = new PlcStruct() { Name = "None" };
        public string Name { get; set; }
        /// <summary>
        /// 变量表
        /// </summary>
        public NormalVariableTable InterfaceVariableTable { get; set; } = new NormalVariableTable();

        public PlcVariable(string _name)
        {
            InterfaceVariableTable.AddMember(NoneStruct);
            Name = _name;
        }

    }
}
